package impl

import (
	"micro.user.action.server/dao"
	"micro.user.action.server/factory"
	"micro.user.action.server/models"
)

type AdminUserImpl struct{}

func AdminUserBuilder() factory.AdminUserFactory {
	return &AdminUserImpl{}
}

func (*AdminUserImpl) UserRegistry(user *models.VsHUser) (uint64, error) {
	return dao.AdminUserRegistry(user)
}

func (*AdminUserImpl) UserLogin(userName, password string) (*models.VsHUser, error) {
	return dao.AdminUserLogin(userName, password)
}

func (*AdminUserImpl) QueryUserInfo(userID uint64) (*models.VsHUser, error) {
	return dao.QueryAdminUserInfo(userID)
}
